import request from '@/utils/request'

export function getapi(current,size) {
  return request({
    url: '/admin/major/getMajors',
    method: 'get',
    params: { current, size }
  })
}

export function addapi(data) {
  return request({
    url: '/admin/major/addMajors',
    method: 'post',
    data
  })
}

export function updateapi(data) {
  return request({
    url: '/admin/major/updateMajors',
    method: 'post',
    data
  })
}

export function deleteapi(id) {
  return request({
    url: '/admin/major/deleteMajors',
    method: 'get',
    params: { id }
  })
}
